/*
** my_strdup.c for my_strdup in /home/boulah_m//jour_08
** 
** Made by moustafa boulahia
** Login   <boulah_m@epitech.net>
** 
** Started on  Wed Oct 12 10:01:33 2011 moustafa boulahia
** Last update Mon Jan 23 08:00:02 2012 moustafa boulahia
*/
#include <stdlib.h>
#include "my.h"

char	*my_strdup(char *src)
{
  char	*copy;

  copy = malloc(my_strlen(src));
  if (copy)
    {
      copy = my_strcpy(copy, src);
      return (copy);
    }
  else
    {
      return ("");
    }
}
